package com.aijk.ehm.sys.api;

import com.aijk.commons.exception.ErrorCodeException;
import com.aijk.ehm.sys.model.SysAdminRole;
import com.aijk.ehm.sys.model.qo.AdminRoleQo;
import com.aijk.ehm.sys.service.SysAdminRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("sysAdminRoleApi")
public class SysAdminRoleApiImpl implements SysAdminRoleApi {

    @Autowired
    private SysAdminRoleService adminRoleService;
    @Override
    public List<SysAdminRole> getList(AdminRoleQo qo) throws ErrorCodeException {
        return adminRoleService.find(qo);
    }
}
